.container {
    width: 1200px;
    margin: 0 auto;
}

// 页头
#header {
    height: 150px;
    display: flex;
    justify-content: space-around;

    .logo {
        display: flex;
        margin-top: 38px;

        img {
            width: 75px;
            height: 75px;
        }

        .text {
            color: #43200c;
            line-height: 30px;
            margin-left: 15px;

            h2 {
                font-size: 28px;
            }

            p {
                font-size: 12px;
            }
        }
    }

    .search {
        border: 1px solid #ceb8b8;
        border-radius: 10px;
        height: 40px;
        width: 490px;
        margin-top: 55px;

        span {
            display: inline-block;
            width: 30px;
            text-align: center;
            color: #bfbaba;
        }

        input[name="search"] {
            width: 350px;
        }

        input[name="submit"] {
            width: 100px;
            line-height: 40px;
            background: #FEE356;
            border-radius: 10px;

            &:hover {
                cursor: pointer;
            }
        }
    }

    .tag {
        display: flex;
        height: 40px;
        margin-top: 55px;

        div {
            width: 80px;

            span {
                color: rgb(235, 16, 16);
                margin: 20px;
            }

            p {
                margin-top: 10px;
            }
        }

    }
}

// 商品加入购物车
#product {
    width: 1000px;
    display: flex;
    padding: 20px;
    margin-bottom: 20px;
    background: #fafafa;

    .images {
        width: 350px;
        height: 430px;
        margin-right: 30px;
        position: relative;

        .show {
            position: relative;

            img {
                width: 350px;
                height: 350px;
                cursor: pointer;
            }

            .mask {
                width: 150px;
                height: 150px;
                position: absolute;
                left: 0;
                top: 0;
                background: rgba(206, 188, 155, 0.5);
                pointer-events: none;
            }
        }

        ul {
            display: flex;
            justify-content: space-around;

            .active {
                border: 1px solid rgba(128, 128, 128, .6);
            }

            img {
                width: 80px;
                left: 80px;
                margin-top: 10px;
            }
        }

        .big {
            width: 400px;
            height: 400px;
            overflow: hidden;
            position: absolute;
            left: 400px;
            top: 0;

            img {
                position: absolute;
                left: 400px;
                top: 0;
                // 这个宽高根据其他盒子的大小来设置
                opacity: 0.9;
            }

        }
    }

    .discription {
        width: 600px;
        position: relative;
        z-index: 99;

        h3 {
            width: 500px;
            font-size: 18px;
            color: #272424;
            font-weight: bold;
            margin: 20px;
        }

        p {
            width: 500px;
            height: 100px;
            font-size: 14px;
            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-line-clamp: 3; //文本显示两行
            display: -webkit-box; //盒子模型微弹性伸缩模型
            -webkit-box-orient: vertical; //伸缩盒子的子元素垂直排列
            margin: 20px;
        }

        .price {
            color: red;
            height: 20px;

            .text {
                color: #000;
                font-size: 16px;
            }

            span {
                font-size: 20px;
            }
        }

        form {
            margin: 30px;
            font-size: 14px;
        }

        button {
            cursor: pointer;
            width: 120px;
            height: 40px;
            border-radius: 10px;
            background: orange;
            margin-left: 80px;
        }
    }

}

// 商品详情
#detail {
    h2 {
        font-weight: bold;
        text-align: center;
        font-size: 24px;
        margin: 10px;
    }

    .images {
        width: 800px;
        margin: 0 auto;

        img {
            width: 800px;
            height: 500px;
            text-align: center;
        }
    }
}


// 页脚
#footer {
    min-width: 1200px;
    height: 80px;
    background: #000;
    color: gray;
    text-align: center;
    line-height: 40px;
}

// 回到顶部
#toTop {
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: orange;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    cursor: pointer;

    span {
        font-size: 24px;
    }
}